<%-- 
    Document   : orderstatus
    Created on : Jun 3, 2012, 12:24:07 PM
    Author     : ghaban
--%>


<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<LINK href="stylesheet.css" rel="stylesheet" type="text/css">
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>WebBucks Online Coffee Company!</title>
        <style>.error { color: red; } .success { color: green; }</style>
    </head>
    <body>
        <div id="content">
            <div id="loginpane">
                <c:choose>
                    <c:when test="${! empty validUser && validUser == true}">
                        Current User: ${currentUser}
                        <a href="/webbucks-war/IndexServlet?action=logout">Log out</a>
                        <a href="updateCustomer.jsp">Update profile</a>
                    </c:when>
                    <c:otherwise>
                        <a href="login.jsp">Login or register</a>
                    </c:otherwise>
                </c:choose>
                
                <a href="/webbucks-war/Manager">Manage shop</a>
                
            </div>
            
            
            <a href="/webbucks-war/IndexServlet?action=toIndex">Till startsidan</a>
            <div id="header">
                <h1>WebBucks!</h1>
            </div>
            
            
            
            
            <h2>Order</h2>
        <table>
            <tr>
                <td>Product</td>
                <td>Description</td>
            </tr>
        <c:forEach items="${result}" var="result">
        <tr>
        <td>${result.key}</td>
        
        <td>${result.value} </td>
        
        </tr>
        </c:forEach>
        </table>
    </div>
    </body>
</html>
